#include<iostream>
#include"ex4.cpp"
using namespace std;
int main()
{
   Rational a=Rational(1,2);
   Rational b=Rational(1,4);
cout<<"Fractiile sunt:  "<<a.getNumarator()<<"/"<<a.getNumitor()<<" si "<<b.getNumarator()<<"/"<<b.getNumitor()<<endl;
   Rational suma=a+b;
   printf("\n\nSuma celor 2 fractii este: %d/%d",suma.getNumarator(),suma.getNumitor());
   Rational diff;
   diff=a-b;
   printf("\nDiferenta celor 2 fractii este: %d/%d",diff.getNumarator(),diff.getNumitor());
   Rational produs;
   produs=a*b;
   printf("\nProdusul celor 2 fractii este: %d/%d",produs.getNumarator(),produs.getNumitor());
   Rational cat;
   cat=a/b;
   printf("\nCatul celor 2 fractii este: %d/%d\n\n",cat.getNumarator(),cat.getNumitor());
   return 0;
}
